//
//  NewsViewController.m
//  A段项目
//
//  Created by ～whc on 15-6-17.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NewsViewController.h"

@interface NewsViewController ()

@end

@implementation NewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view setBackgroundColor:[UIColor whiteColor]];
    self.navigationItem.title = @"今日热点";
    
    
    NewsView *new = [[NewsView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    new.myDetelate = self;
    new.myDetelate2 = self;
    new.myDetegate = self;
    [self.view addSubview:new];
    [new release];
    
    
    
    
    
    
}


-(void)pushHotPointOne:(NSInteger)newsID
{
    self.view1 = [[HotViewController alloc]init];
    [self.navigationController pushViewController:self.view1 animated:YES];
    self.view1.newsId = newsID;
    [_view1 release];
}
-(void)pushHotPointTwo:(NSInteger)newsID
{
    self.view2 = [[HotViewController alloc]init];
    [self.navigationController pushViewController:self.view2 animated:YES];
    self.view2.newsId = newsID;
    [_view2 release];

}

-(void)pushDailyMovie:(NSInteger)movieId
{
    DailyViewController *view3 = [[DailyViewController alloc]init];
    [self.navigationController pushViewController:view3 animated:YES];
    view3.movieId = movieId;
    [view3 release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
